/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.bridge;/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/12/28 15:31
 * Update Date Time:
 */

public class Main {
    public static void main(String[] args) {
        Abstraction a = new AbstractionA("a");
        a.setImplementor(new ImplementorA());
        a.operation();
        a.setImplementor(new ImplementorB());
        a.operation();
        Abstraction b = new AbstractionB("B");
        b.setImplementor(new ImplementorB());
        b.operation();
        b.setImplementor(new ImplementorA());
        b.operation();
    }
}
